gtk/textview: Defer touchscreen focus placing to drag end
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Nov 2020 20:07:54 +0000 (21:07 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 5 Nov 2020 20:29:20 +0000 (21:29 +0100)
commitf9813019a7037f6f5ae3eae0f72d7267344c6c13
tree970085b78f3f66ca3d6e54e0a166e574987bd78b
parent5e907ebd58b2c9928c92b03a6e4000d23d0774ae
gtk/textview: Defer touchscreen focus placing to drag end

With the scrolledwindow drag gesture not claiming the sequence immediately,
we end up placing the cursor (and undoing the previous selection) each time
we scroll.

There is already handling too short drags in ::drag-end, so let this code
handle touchscreens as well.
gtk/gtktextview.c